package com.qf.crm.dao.impl;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.qf.crm.dao.EmployeeDao;
import com.qf.crm.dao.base.BaseDao;
import com.qf.crm.entity.Employee;

public class EmployeeDaoImpl extends BaseDao<Employee> implements EmployeeDao{

	@Override
	public Employee getEmployeeByEmailAndPassword(Connection connection, String sql, Class<Employee> clazz,
			Object... args) throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException, SQLException {
		return get(connection, sql, clazz, args);
	}

	@Override
	public List<Employee> getEmployeeList(Connection connection, String sql, Class<Employee> clazz, Object... args) throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException, SQLException {
		return getList(connection, sql, clazz, args);
	}

	@Override
	public Employee getEmployee(Connection connection, String sql, Class<Employee> clazz, Object... args)
			throws InstantiationException, IllegalAccessException, NoSuchFieldException, SecurityException,
			SQLException {
		return get(connection, sql, clazz, args);
	}

}
